
<html>
<head>
<title>resumo_custos</title>
{BEGIN stylesheetlink}
<link REL="stylesheet" href="include/style.css" type="text/css">
<!--[if IE]>
<link REL="stylesheet" href="include/styleIE.css" type="text/css">
<![endif]-->
{END stylesheetlink}
<style>
.grid_block {  
margin-top:5px;
border-collapse: collapse;
align:center;
width:95%;
border: solid black 1px;
} 
.grid_block td { 
 padding: 5px; 
 margin: 0px; 
 border: solid #cccccc 1px;
}
.grid_block .gridspacing {width:20px;border-top-color:white; border-bottom-color:white;background-color:white}
@media print 
{
	a.pdf {display:none}
}
.printpage {page-break-after:always}
.pagesummary
{
background-color:#ffffbb;
}
.globalsummary
{
background-color:#ffe0b0;
}

{$cssdata}

.group_1
{
background-color: #F4FFF4;
}
.group_2
{
background-color: #ECF9FF;
}
.group_3
{
background-color: #FFFFCC;
}


.nbgroup_1
{
background-color: #F4FFF4;
border-style:none;
}
.nbgroup_2
{
background-color: #ECF9FF;
border-style:none;
}
.nbgroup_3
{
background-color: #FFFFCC;
border-style:none;
}


.header_1
{
background-color: #CFD8CF;
}
.header_2
{
background-color: #C8D3D8;
}
.header_3
{
background-color: #D8D8AD;
}

</style> 
</head>
<body topmargin=5 style="background:white">
{$header}
{BEGIN body}
{BEGIN page}
<div>

<h1>resumo_custos</h1>


{BEGIN grid_block}
<table align="center" cellpadding=5 class="grid_block">
{BEGIN grid_row}
<!-------------------------------------  group headers ----------------------------------------->
{BEGIN componente_newgroup}
<tr>
<td class=header_1 colspan=14>
Componente:&nbsp;
<font style="font-weight:900">{$componente_grval}</font></td>
</tr>
{END componente_newgroup}
{BEGIN sub_componente_newgroup}
<tr>
<td class=group_1>&nbsp;</td>
<td class=header_2 colspan=13>
Sub Componente:&nbsp;
<font style="font-weight:900">{$sub_componente_grval}</font></td>
</tr>
{END sub_componente_newgroup}
{BEGIN nome_local_newgroup}
<tr>
<td class=group_1>&nbsp;</td>
<td class=group_2>&nbsp;</td>
<td class=header_3 colspan=12>
Nome Local:&nbsp;
<font style="font-weight:900">{$nome_local_grval}</font></td>
</tr>
<tr>
<td class=group_1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td class=group_2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td class=group_3>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td class=blackshade><b>Atividade</b></td>
<td class=blackshade><b>Dt Inicio</b></td>
<td class=blackshade><b>Cod Custo</b></td>
<td class=blackshade><b>Nsub</b></td>
<td class=blackshade><b>Resp Interno</b></td>
<td class=blackshade><b>Resp Externo</b></td>
<td class=blackshade><b>Cont Contabil Plan</b></td>
<td class=blackshade><b>Cont Nao Contabil Plan</b></td>
<td class=blackshade><b>Kfw Fundo Disposicao Plan</b></td>
<td class=blackshade><b>Kfw Contrato Consult Plan</b></td>
<td class=blackshade><b>Ncomp</b></td>
</tr>
{END nome_local_newgroup}
<!-------------------------------------  data ----------------------------------------->
{BEGIN row_data}
<tr>
			<td class=group_1>&nbsp;</td>
			<td class=group_2>&nbsp;</td>
			<td class=group_3>&nbsp;</td>
	<td class=data align=center>{$atividade_value}</td>
	<td class=data align=center>{$Dt_Inicio_value}</td>
	<td class=data align=center>{$cod_custo_value}</td>
	<td class=data align=center>{$Nsub_value}</td>
	<td class=data align=center>{$Resp_interno_value}</td>
	<td class=data align=center>{$Resp_externo_value}</td>
	<td class=data align=center>{$cont_contabil_plan_value}</td>
	<td class=data align=center>{$cont_nao_contabil_plan_value}</td>
	<td class=data align=center>{$kfw_fundo_disposicao_plan_value}</td>
	<td class=data align=center>{$kfw_contrato_consult_plan_value}</td>
	<td class=data align=center>{$Ncomp_value}</td>
</tr>
{END row_data}
<!-------------------------------------  group summary ----------------------------------------->
{BEGIN nome_local_endgroup}
<tr>
	<td class=group_1>&nbsp;</td>
	<td class=group_2>&nbsp;</td>
	<td 1 class=group_3
		colspan=12 >
	Resumo para Nome Local {$nome_local_grval}
	 - {$groupnome_local_total_cnt} Total de registros</div></td>
</tr>
<!--  Sum -->
<tr>
			<td class=group_1>&nbsp;</td>
			<td class=group_2>&nbsp;</td>
			<td class=group_3
		>Soma</td>
			<td class=group_3
		>&nbsp;</td>
			<td class=group_3
		>&nbsp;</td>
			<td class=group_3
		>&nbsp;</td>
			<td class=group_3
		>&nbsp;</td>
			<td class=group_3
		>&nbsp;</td>
			<td class=group_3
		>&nbsp;</td>
			<td class=group_3
		>{$groupnome_local_totalcont_contabil_plan_sum}</td>
			<td class=group_3
		>{$groupnome_local_totalcont_nao_contabil_plan_sum}</td>
			<td class=group_3
		>{$groupnome_local_totalkfw_fundo_disposicao_plan_sum}</td>
			<td class=group_3
		>{$groupnome_local_totalkfw_contrato_consult_plan_sum}</td>
			<td class=group_3
		>&nbsp;</td>
</tr>	
{END nome_local_endgroup}
{END grid_row}
{BEGIN global_summary}
<!--------------------------------------global summary-------------------------------------------->
<tr>
	<td class=globalsummary style="border-top: solid black 2px" colspan=14>Resumo Global 
	 {$global_total_cnt} - Total de registros</td>
</tr>
<!--  Sum -->
<tr>
	<td class=globalsummary>
			Soma&nbsp;
			&nbsp;
	</td>
	<td class=globalsummary>
					&nbsp;
	</td>
	<td class=globalsummary>
					&nbsp;
	</td>
	<td class=globalsummary>
					&nbsp;
	</td>
	<td class=globalsummary>
					&nbsp;
	</td>
	<td class=globalsummary>
					&nbsp;
	</td>
	<td class=globalsummary>
					&nbsp;
	</td>
	<td class=globalsummary>
					&nbsp;
	</td>
	<td class=globalsummary>
					&nbsp;
	</td>
	<td class=globalsummary>
					{$global_totalcont_contabil_plan_sum}
	</td>
	<td class=globalsummary>
					{$global_totalcont_nao_contabil_plan_sum}
	</td>
	<td class=globalsummary>
					{$global_totalkfw_fundo_disposicao_plan_sum}
	</td>
	<td class=globalsummary>
					{$global_totalkfw_contrato_consult_plan_sum}
	</td>
	<td class=globalsummary>
					&nbsp;
	</td>
</tr>	
{END global_summary}
</table>
{END grid_block}
</div>
{END page}
{END body}
{$footer}
</body>
</html>